package com.szm.mvc.util.bean;

import java.util.HashMap;
import java.util.Map;

import com.szm.mvc.util.Constant;

/**
 * @author szm
 * @ClassName Results.java
 * @Description 模拟 Struts Results
 *
 */
public class ResultsBean extends XMLBean{

	/**
	 * name 名称，Action返回值.
	 */
	private String name;
	/**
	 * type 类型，Action跳转类型.
	 */
	private String type = Constant.DISPATCHER;
	/**
	 * url 地址，跳转地址.
	 */
	private String url;
	
	private Map<String,String> param = new HashMap<String,String>();
	
	public ResultsBean() {
		super();
	}
	
	public ResultsBean(String name) {
		super();
		this.name = name;
	}

	public ResultsBean(String name, String type, String url) {
		super();
		this.name = name;
		this.type = type;
		this.url = url;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}

	public Map<String, String> getParam() {
		return param;
	}

	public void setParam(Map<String, String> param) {
		this.param = param;
	}
	
	
}
